/*
 * MODULE  NAME  :
 * PROGRAM NAME  : renrendaigetdetail.h
 * AUTHOR        : HOTMOCHA
 * CREATE  DATE  : 2015-01-29 20:28:46
 * PROGRAM DESC  :
 *
 * HISTORY       :
 *
 */
#ifndef _H_RENRENDAIGETDETAIL_H_
#define _H_RENRENDAIGETDETAIL_H_

#include "ilog.h"
#include "simplebuf.h"
#include "gumbo.h"
#include "gumbowrap.h"
#include "list.h"
#include "yajl/yajl_tree.h"
#include "renrendai.h"

#define RENRENDAI_DETAIL_PARSEJSONERR		-40001	
#define RENRENDAI_DETAIL_PARSECHECKBOX		-40002	
#define RENRENDAI_DETAIL_UNINITEDLOANID		-1
#define CHECK   "icon icon-check-checked mr5" 
#define UNCHECK "icon icon-check-unchecked mr5"

typedef struct {
	/*  个人信息 */
	long ID;
	int male;
	char nickName[41];
	char compIndustry[61];
	char income[31];
	int age;
	char compScale[41];

	int haveHouse;
	int houseDebit;
	int haveCar;
	int carDebit;
	int isMarriage;

	char education[51];
	char position[81];
	char school[81];
	char city[81];
	char workage[21];

	/* 信用情况*/
	int applyTimes;
	int successApplyTimes;
	int successTimes;
	double credit;
	double totalDebit;
	double toRepayAmt;
	double timeoutAmt;
	int timeoutTimes;
	int seriousTimeoutTimes;
}RenrendaiUser ;

int SetLoanIdForDebitDetail(long loanid);


#endif

